package luoxuan.plans.service;

import org.springframework.transaction.annotation.Transactional;

import luoxuan.plans.dao.FromPlansDao;
import luoxuan.plans.dao.ToPlansDao;
import luoxuan.plans.entity.FromPlans;

@Transactional
public class FromPlansService {

	private FromPlansDao fromPlansDao;

	public void setFromPlansDao(FromPlansDao fromPlansDao) {
		this.fromPlansDao = fromPlansDao;
	}

	public void save(FromPlans fromPlans) {

		fromPlansDao.save(fromPlans);
	}

	public FromPlans findById(int fromPlansId) {

		return fromPlansDao.findById(fromPlansId);
	}

	public void update(FromPlans fromPlans) {
		
		fromPlansDao.update(fromPlans);
		
	}
	
}
